package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SearchClause {

    private int beginIndex;
    private int endIdex;
    private RecursiveSearchOrder recursiveSearchOrder;
    private Identifier sequenceName;

    public SearchClause(int beginIndex,
                        RecursiveSearchOrder recursiveSearchOrder,
                        Identifier sequenceName) {
        this.beginIndex = beginIndex;
        this.endIdex = sequenceName.getEndIndex();
        this.recursiveSearchOrder = recursiveSearchOrder;
        this.sequenceName = sequenceName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIdex;
    }

    public int getEndIdex() {
        return endIdex;
    }

    public RecursiveSearchOrder getRecursiveSearchOrder() {
        return recursiveSearchOrder;
    }

    public Identifier getSequenceName() {
        return sequenceName;
    }

}
